package com.guigu.buy.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author com.guigu
 * @since 2024-05-15
 */
@Data
@TableName("supplier")
public class Supplier implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer parentId;

    private Double balance;

    private String address;

    private String detailsAddr;

    @DateTimeFormat(pattern = "yyyy-MM-dd'T'hh:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createDate;

    private String checker;
    @DateTimeFormat(pattern = "yyyy-MM-dd'T'hh:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date checkTime;

    private String supplierName;

    private String supplierCard;

    private String supplierIamge;

    private String supplierPerson;

    private String supplierNumber;

    private Integer supplierStatus;

    private Integer userSupplierTag;

    private String auitOpinion;

    @Override
    public String toString() {
        return "Supplier{" +
                "id=" + id +
                ", parentId=" + parentId +
                ", balance=" + balance +
                ", address='" + address + '\'' +
                ", detailsAddr='" + detailsAddr + '\'' +
                ", createDate=" + createDate +
                ", checker='" + checker + '\'' +
                ", checkTime=" + checkTime +
                ", supplierName='" + supplierName + '\'' +
                ", supplierCard='" + supplierCard + '\'' +
                ", supplierIamge='" + supplierIamge + '\'' +
                ", supplierPerson='" + supplierPerson + '\'' +
                ", supplierNumber='" + supplierNumber + '\'' +
                ", supplierStatus=" + supplierStatus +
                ", userSupplierTag=" + userSupplierTag +
                ", auitOpinion='" + auitOpinion + '\'' +
                '}';
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Double getBalance() {
        return balance;
    }

    public void setBalance(Double balance) {
        this.balance = balance;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getDetailsAddr() {
        return detailsAddr;
    }

    public void setDetailsAddr(String detailsAddr) {
        this.detailsAddr = detailsAddr;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getChecker() {
        return checker;
    }

    public void setChecker(String checker) {
        this.checker = checker;
    }

    public Date getCheckTime() {
        return checkTime;
    }

    public void setCheckTime(Date checkTime) {
        this.checkTime = checkTime;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getSupplierCard() {
        return supplierCard;
    }

    public void setSupplierCard(String supplierCard) {
        this.supplierCard = supplierCard;
    }

    public String getSupplierIamge() {
        return supplierIamge;
    }

    public void setSupplierIamge(String supplierIamge) {
        this.supplierIamge = supplierIamge;
    }

    public String getSupplierPerson() {
        return supplierPerson;
    }

    public void setSupplierPerson(String supplierPerson) {
        this.supplierPerson = supplierPerson;
    }

    public String getSupplierNumber() {
        return supplierNumber;
    }

    public void setSupplierNumber(String supplierNumber) {
        this.supplierNumber = supplierNumber;
    }

    public Integer getSupplierStatus() {
        return supplierStatus;
    }

    public void setSupplierStatus(Integer supplierStatus) {
        this.supplierStatus = supplierStatus;
    }

    public Integer getUserSupplierTag() {
        return userSupplierTag;
    }

    public void setUserSupplierTag(Integer userSupplierTag) {
        this.userSupplierTag = userSupplierTag;
    }

    public String getAuitOpinion() {
        return auitOpinion;
    }

    public void setAuitOpinion(String auitOpinion) {
        this.auitOpinion = auitOpinion;
    }
}
